import { instance } from "../utils/request";
const getErrorLogsPagination = async (params) => {
	return await instance.get("/ErrorLogs/Pagination", params);
};

const addErrorLogs = async (data) => {
	return await instance.post("/ErrorLogs/Add", data);
};

const updateErrorLogs = async (data) => {
	return await instance.post("/ErrorLogs/Update", data);
};

const getErrorLogsDetail = async (id) => {
	return await instance.get("/ErrorLogs/Detail", { id : id });
};

const deleteErrorLogs = async (id) => {
	return await instance.post("/ErrorLogs/Delete", { id : id });
};

const errorLogsApi = {
	getErrorLogsPagination,
	addErrorLogs,
	updateErrorLogs,
	getErrorLogsDetail,
	deleteErrorLogs,
};

export default errorLogsApi
